//
//  RssFeed.h
//  RssRead
//
//  Created by 旺财 on 10-11-1.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RssFeed : NSObject<NSXMLParserDelegate> {
	
	NSXMLParser * rssParser;
	
	NSMutableArray * stories;
	
	NSData *myData;
	
	// a temporary item; added to the "stories" array one at a time, and cleared for the next one
	NSMutableDictionary * item;
	
	// it parses through the document, from top to bottom...
	// we collect and cache each sub-element value, and then save each item to our array.
	// we use these to track each current item, until it's ready to be added to the "stories" array
	NSString * currentElement;
	NSMutableString * currentTitle, * currentDate, * currentSummary, * currentLink;
	NSString *filepath,*currentShortSummary;
	BOOL isread;
	NSInteger notreadcount;
	 
	

}
@property (nonatomic,retain) NSMutableArray * stories;
@property NSInteger notreadcount;
@property (nonatomic) NSInteger lastUpdateState; //-1:未更新成功，1：更新成功，0：状态不变

- (void)parseXMLFileAtURL:(NSString *)URL cachefile:(NSString *)md5path isforce:(BOOL)force updateRss:(NSInteger) timer;
@end
